<div class="btn-group" align="right">
	<A class="btn btn-default" href="/admin/product/add"><i class="icon-plus"></i>Thêm</A>
</div>
<table class="table table-bordered table-striped">
	<tr>
		<th>STT</th>
		<th>Tên</th>
		<th>Người phát triển</th>
		<th>Quản lý link download</th>
		<th>Quản lý ảnh</th>
		<th>Sửa</th>
		<th>Xóa</th>
	</tr>
	<?php foreach ($this->paginator as $key => $value):?>
		<tr>
			<td><?php echo $key + 1 + $this->paginator->getItemCountPerPage() * ($this->paginator->getCurrentPageNumber() - 1)?></td>
			<td><?php echo $value['name']?></td>
			<td><?php echo $value['developer']?></td>
			<td><a class="btn btn-default" href="/admin/product/download-manager/id/<?php echo $value['id']?>"><i class="glyphicon glyphicon-edit"></i> Link download</a></td>
			<td><a class="btn btn-default" href="/admin/product/ingame-image-manager/id/<?php echo $value['id']?>"><i class="glyphicon glyphicon-edit"></i> Ingame image</a></td>
			<td><a class="btn btn-default" href="/admin/product/edit/id/<?php echo $value['id']?>"><i class="glyphicon glyphicon-edit"></i> Sửa</a></td>
			<td><a class="btn btn-default" href="/admin/product/delete/id/<?php echo $value['id']?>" onclick="return confirm('Bạn có chắc chắn muốn xóa?');"><i class="glyphicon glyphicon-edit"></i> Xóa</a></td>
		</tr>
	<?php endforeach;?>
</table>

	<?php 
	echo $this->paginator;
